package dao;

import java.util.List;

import org.hibernate.Session;

import modele.Depotcontact;


import persistence.BaseDAO;

public class DepotcontactDAO{
	
	public static void ajouterDepotcontact(Depotcontact depotcontact,Session session) throws Exception{
		BaseDAO.getInstance().ajouter(depotcontact,session);
	}

	public static void modifierDepotcontact(Depotcontact depotcontact,Session session) {
		BaseDAO.getInstance().modifier(depotcontact,session);
	}

	public static void SupprimerDepotcontact(Depotcontact depotcontact,Session session) {
		BaseDAO.getInstance().delete(depotcontact,session);
	}

	public static void getDepotcontact(int id,Session session) {
		BaseDAO.getInstance().getObject(Depotcontact.class, id,session);
	}

	public static List getListDepotcontact(String requette, Session session) {
		return BaseDAO.getInstance().getListObject(requette,session);
	}

}
